//
//  UdpConfigDefine.h
//  socketDemo
//
//  Created by 吳瀾洲 on 2020/8/6.
//  Copyright © 2020 kingboyrang. All rights reserved.
//

#ifndef UdpConfigDefine_h
#define UdpConfigDefine_h


/*********************************udp配置**************************************/

extern NSString *const  kUDPSendSuccessNotification;  //发送成功
extern NSString *const  kUDPSendFailedNotification;  //发送失败

typedef NS_ENUM(NSInteger,UDPConnectState) {
    UDPConnectUnknown=0,      //udp连接成功未知状态
    UDPConnectSuccess,        //udp连接成功状态
    UDPConnectClose,        //udp连接断开状态
    UDPConnectFailed         //udp连接失败状态
};

//udp连接状态
typedef void (^UDPConnectStateChangedBlock) (UDPConnectState conState);
//udp发送状态
typedef void (^UDPSendDataBlock)(BOOL success,long tag,NSError *error);

#endif /* UdpConfigDefine_h */
